package com.emep.changzhi.analyse.entity.basics;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;


/**
 * @author yangj
 * @Description: 流域类型表
 * @date 2018/2/24  8:48
 * @version V1.0
 */


@Data
@Entity
@Table(name = "sys_region_info")
public class SysRegionInfo implements Serializable{

    private static final long serialVersionUID = 1374728936569469048L;

    @Id
    @GenericGenerator(name = "system-uuid" , strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    @Column(name = "region_name",columnDefinition="varchar(100) COMMENT '流域名称'" )
    private String regionName;

    @Column(name = "region_code",columnDefinition="varchar(100) COMMENT '系统层级码'" )
    private String regionCode;

    @Column(name = "national_code",columnDefinition="varchar(100) COMMENT '国家编码'" )
    private String nationalCode;

    @Column(name = "parent_id",columnDefinition="varchar(100) COMMENT '父流域ID'" )
    private String parentId;

    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '删除状态'" )
    private String isDelete = "0";

    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '创建时间'" )
    @OrderBy("create_date DESC")
    private String createDate =  String.valueOf(System.currentTimeMillis());



}
